package cn.itsource.xhy.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * 封装查询结果
 * @author 86152
 *
 * @param <T>
 */
public class QueryResult<T> {
	// 分页数据
	private List<T> data = new ArrayList<>();
	// 总数量
	private Long total = 0L;
	
	public QueryResult() {}

	public QueryResult(List<T> data, Long total) {
		super();
		this.data = data;
		this.total = total;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public Long gettotal() {
		return total;
	}

	public void settotal(Long total) {
		this.total = total;
	}
	
	
}
